import Layout from '@/layout/index.vue'

const asyncRoutes = [
  {
    path: '/config',
    name: 'Config',
    component: Layout,
    meta: {
      title: '参数设置',
      icon: 'nav-icon icon-config',
      resourceId: 'route:/web/system-management/',
    },
    children: [
      {
        path: '/config/serviceIp',
        name: 'ServiceIp',
        component: () => import('@/views/config/serviceIp.vue'),
        meta: {
          title: '服务器IP',
          resourceId: 'route:/web/system-management/server-info/',
        },
      },
      {
        path: '/config/gateway',
        name: 'Gateway',
        component: () => import('@/views/config/gateway.vue'),
        meta: {
          title: '网关参数',
          resourceId: 'route:/web/system-management/gateway-config/',
        },
      },
    ],
  },
]

export default asyncRoutes
